package com.teamall.web.fpgz.db.arg;

import java.util.*;
import java.math.*;
import org.apache.commons.lang.*;

public class CodeFamilyVistedLogArg {
    private String pk_name = "VISITED_LOG_ID";

    private String orderByClause;

    private String groupByClause;

    private String columns;

    private String countsql1;

    private String countsql2;

    private boolean distinct;

    private int rowStart = 0;

    private int rowEnd = 10;

    private List<CodeFamilyVistedLogCriteria> oredCriteria;

    public CodeFamilyVistedLogArg() {
        oredCriteria = new ArrayList<CodeFamilyVistedLogCriteria>();
    }

    public void setPk_name(String pk_name) {
        this.pk_name = StringEscapeUtils.escapeSql(pk_name);
    }

    public String getPk_name() {
        return pk_name;
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = StringEscapeUtils.escapeSql(orderByClause);
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setGroupByClause(String groupByClause) {
        this.groupByClause = StringEscapeUtils.escapeSql(groupByClause);
    }

    public String geGroupByClause() {
        return groupByClause;
    }

    public void setColumns(String columns) {
        this.columns = StringEscapeUtils.escapeSql(columns);
    }

    public String geColumns() {
        return columns;
    }

    public void setCountsql1(String countsql1) {
        this.countsql1 = StringEscapeUtils.escapeSql(countsql1);
    }

    public String geCountsql1() {
        return countsql1;
    }

    public void setCountsql2(String countsql2) {
        this.countsql2 = StringEscapeUtils.escapeSql(countsql2);
    }

    public String geCountsql2() {
        return countsql2;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public void setRowStart(int rowStart) {
        this.rowStart = rowStart;
    }

    public void setRowEnd(int rowEnd) {
        this.rowEnd = rowEnd;
    }

    public int getRowStart() {
        return rowStart;
    }

    public int getRowEnd() {
        return rowEnd;
    }

    public List<CodeFamilyVistedLogCriteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(CodeFamilyVistedLogCriteria criteria) {
        oredCriteria.add(criteria);
    }

    public CodeFamilyVistedLogCriteria or() {
    	CodeFamilyVistedLogCriteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public CodeFamilyVistedLogCriteria createCriteria() {
    	CodeFamilyVistedLogCriteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected CodeFamilyVistedLogCriteria createCriteriaInternal() {
    	CodeFamilyVistedLogCriteria criteria = new CodeFamilyVistedLogCriteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        groupByClause = null;
        columns = null;
        countsql1 = null;
        countsql2 = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<CodeFamilyVistedLogCriterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<CodeFamilyVistedLogCriterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<CodeFamilyVistedLogCriterion> getAllCriteria() {
            return criteria;
        }

        public List<CodeFamilyVistedLogCriterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new CodeFamilyVistedLogCriterion(condition));
        }

        protected void addCriterion(String condition, Object value,
                String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new CodeFamilyVistedLogCriterion(condition, value));
        }

        protected void addCriterion(String condition, Object value,
                String property, int likeType) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new CodeFamilyVistedLogCriterion(condition, value, likeType));
        }

        protected void addCriterion(String condition, Object value1,
                Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property
                        + " cannot be null");
            }
            criteria.add(new CodeFamilyVistedLogCriterion(condition, value1, value2));
        }

        public CodeFamilyVistedLogCriteria andCriterionEqualTo(String criterion) {
            if (StringUtils.isBlank(criterion)) {
                criterion = "1=1";
            }
            addCriterion(criterion);
            return (CodeFamilyVistedLogCriteria) this;
        }
        public CodeFamilyVistedLogCriteria andTownIdIsNull() {
            addCriterion("town_id is null");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andTownIdIsNotNull() {
            addCriterion("town_id is not null");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andTownIdEqualTo(Integer value) {
            addCriterion("town_id =", value, "town_id");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andTownIdNotEqualTo(Integer value) {
            addCriterion("town_id <>", value, "town_id");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andTownIdGreaterThan(Integer value) {
            addCriterion("town_id >", value, "town_id");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andTownIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("town_id >=", value, "town_id");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andTownIdLessThan(Integer value) {
            addCriterion("town_id <", value, "town_id");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andTownIdLessThanOrEqualTo(Integer value) {
            addCriterion("town_id <=", value, "town_id");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andTownIdLike(Integer value) {
            addCriterion("town_id like ", value, "town_id", 1);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andTownIdNotLike(Integer value) {
            addCriterion("town_id  not like ", value, "town_id", 1);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andTownIdLeftLike(Integer value) {
            addCriterion("town_id like ", value, "town_id", 0);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andTownIdNotLeftLike(Integer value) {
            addCriterion("town_id  not like ", value, "town_id", 0);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andTownIdRightLike(Integer value) {
            addCriterion("town_id like ", value, "town_id", 2);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andTownIdNotRightLike(Integer value) {
            addCriterion("town_id  not like ", value, "town_id", 2);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andTownIdIn(List<Integer> values) {
            addCriterion("town_id  in ", values, "town_id");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andTownIdNotIn(List<Integer> values) {
            addCriterion("town_id not in ", values, "town_id");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andTownIdBetween(Integer value1, Integer value2) {
            addCriterion("town_id between ", value1, value2, "town_id");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andTownIdNotBetween(Integer value1, Integer value2) {
            addCriterion("town_id not between ", value1, value2, "town_id");
            return (CodeFamilyVistedLogCriteria) this;
        }
        public CodeFamilyVistedLogCriteria andTownNameIsNull() {
            addCriterion("town_name is null");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andTownNameIsNotNull() {
            addCriterion("town_name is not null");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andTownNameEqualTo(String value) {
            addCriterion("town_name =", value, "town_name");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andTownNameNotEqualTo(String value) {
            addCriterion("town_name <>", value, "town_name");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andTownNameGreaterThan(String value) {
            addCriterion("town_name >", value, "town_name");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andTownNameGreaterThanOrEqualTo(String value) {
            addCriterion("town_name >=", value, "town_name");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andTownNameLessThan(String value) {
            addCriterion("town_name <", value, "town_name");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andTownNameLessThanOrEqualTo(String value) {
            addCriterion("town_name <=", value, "town_name");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andTownNameLike(String value) {
            addCriterion("town_name like ", value, "town_name", 1);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andTownNameNotLike(String value) {
            addCriterion("town_name  not like ", value, "town_name", 1);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andTownNameLeftLike(String value) {
            addCriterion("town_name like ", value, "town_name", 0);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andTownNameNotLeftLike(String value) {
            addCriterion("town_name  not like ", value, "town_name", 0);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andTownNameRightLike(String value) {
            addCriterion("town_name like ", value, "town_name", 2);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andTownNameNotRightLike(String value) {
            addCriterion("town_name  not like ", value, "town_name", 2);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andTownNameIn(List<String> values) {
            addCriterion("town_name  in ", values, "town_name");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andTownNameNotIn(List<String> values) {
            addCriterion("town_name not in ", values, "town_name");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andTownNameBetween(String value1, String value2) {
            addCriterion("town_name between ", value1, value2, "town_name");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andTownNameNotBetween(String value1, String value2) {
            addCriterion("town_name not between ", value1, value2, "town_name");
            return (CodeFamilyVistedLogCriteria) this;
        }
        public CodeFamilyVistedLogCriteria andVillageIdIsNull() {
            addCriterion("village_id is null");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageIdIsNotNull() {
            addCriterion("village_id is not null");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageIdEqualTo(Integer value) {
            addCriterion("village_id =", value, "village_id");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageIdNotEqualTo(Integer value) {
            addCriterion("village_id <>", value, "village_id");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageIdGreaterThan(Integer value) {
            addCriterion("village_id >", value, "village_id");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("village_id >=", value, "village_id");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageIdLessThan(Integer value) {
            addCriterion("village_id <", value, "village_id");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageIdLessThanOrEqualTo(Integer value) {
            addCriterion("village_id <=", value, "village_id");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageIdLike(Integer value) {
            addCriterion("village_id like ", value, "village_id", 1);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageIdNotLike(Integer value) {
            addCriterion("village_id  not like ", value, "village_id", 1);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageIdLeftLike(Integer value) {
            addCriterion("village_id like ", value, "village_id", 0);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageIdNotLeftLike(Integer value) {
            addCriterion("village_id  not like ", value, "village_id", 0);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageIdRightLike(Integer value) {
            addCriterion("village_id like ", value, "village_id", 2);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageIdNotRightLike(Integer value) {
            addCriterion("village_id  not like ", value, "village_id", 2);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageIdIn(List<Integer> values) {
            addCriterion("village_id  in ", values, "village_id");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageIdNotIn(List<Integer> values) {
            addCriterion("village_id not in ", values, "village_id");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageIdBetween(Integer value1, Integer value2) {
            addCriterion("village_id between ", value1, value2, "village_id");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageIdNotBetween(Integer value1, Integer value2) {
            addCriterion("village_id not between ", value1, value2, "village_id");
            return (CodeFamilyVistedLogCriteria) this;
        }
        public CodeFamilyVistedLogCriteria andVillageCodeIsNull() {
            addCriterion("village_code is null");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageCodeIsNotNull() {
            addCriterion("village_code is not null");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageCodeEqualTo(String value) {
            addCriterion("village_code =", value, "village_code");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageCodeNotEqualTo(String value) {
            addCriterion("village_code <>", value, "village_code");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageCodeGreaterThan(String value) {
            addCriterion("village_code >", value, "village_code");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageCodeGreaterThanOrEqualTo(String value) {
            addCriterion("village_code >=", value, "village_code");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageCodeLessThan(String value) {
            addCriterion("village_code <", value, "village_code");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageCodeLessThanOrEqualTo(String value) {
            addCriterion("village_code <=", value, "village_code");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageCodeLike(String value) {
            addCriterion("village_code like ", value, "village_code", 1);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageCodeNotLike(String value) {
            addCriterion("village_code  not like ", value, "village_code", 1);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageCodeLeftLike(String value) {
            addCriterion("village_code like ", value, "village_code", 0);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageCodeNotLeftLike(String value) {
            addCriterion("village_code  not like ", value, "village_code", 0);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageCodeRightLike(String value) {
            addCriterion("village_code like ", value, "village_code", 2);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageCodeNotRightLike(String value) {
            addCriterion("village_code  not like ", value, "village_code", 2);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageCodeIn(List<String> values) {
            addCriterion("village_code  in ", values, "village_code");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageCodeNotIn(List<String> values) {
            addCriterion("village_code not in ", values, "village_code");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageCodeBetween(String value1, String value2) {
            addCriterion("village_code between ", value1, value2, "village_code");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageCodeNotBetween(String value1, String value2) {
            addCriterion("village_code not between ", value1, value2, "village_code");
            return (CodeFamilyVistedLogCriteria) this;
        }
        public CodeFamilyVistedLogCriteria andVillageNameIsNull() {
            addCriterion("village_name is null");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageNameIsNotNull() {
            addCriterion("village_name is not null");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageNameEqualTo(String value) {
            addCriterion("village_name =", value, "village_name");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageNameNotEqualTo(String value) {
            addCriterion("village_name <>", value, "village_name");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageNameGreaterThan(String value) {
            addCriterion("village_name >", value, "village_name");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageNameGreaterThanOrEqualTo(String value) {
            addCriterion("village_name >=", value, "village_name");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageNameLessThan(String value) {
            addCriterion("village_name <", value, "village_name");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageNameLessThanOrEqualTo(String value) {
            addCriterion("village_name <=", value, "village_name");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageNameLike(String value) {
            addCriterion("village_name like ", value, "village_name", 1);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageNameNotLike(String value) {
            addCriterion("village_name  not like ", value, "village_name", 1);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageNameLeftLike(String value) {
            addCriterion("village_name like ", value, "village_name", 0);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageNameNotLeftLike(String value) {
            addCriterion("village_name  not like ", value, "village_name", 0);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageNameRightLike(String value) {
            addCriterion("village_name like ", value, "village_name", 2);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageNameNotRightLike(String value) {
            addCriterion("village_name  not like ", value, "village_name", 2);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageNameIn(List<String> values) {
            addCriterion("village_name  in ", values, "village_name");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageNameNotIn(List<String> values) {
            addCriterion("village_name not in ", values, "village_name");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageNameBetween(String value1, String value2) {
            addCriterion("village_name between ", value1, value2, "village_name");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVillageNameNotBetween(String value1, String value2) {
            addCriterion("village_name not between ", value1, value2, "village_name");
            return (CodeFamilyVistedLogCriteria) this;
        }
        public CodeFamilyVistedLogCriteria andVisitedLogIdIsNull() {
            addCriterion("VISITED_LOG_ID is null");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVisitedLogIdIsNotNull() {
            addCriterion("VISITED_LOG_ID is not null");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVisitedLogIdEqualTo(Integer value) {
            addCriterion("VISITED_LOG_ID =", value, "VISITED_LOG_ID");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVisitedLogIdNotEqualTo(Integer value) {
            addCriterion("VISITED_LOG_ID <>", value, "VISITED_LOG_ID");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVisitedLogIdGreaterThan(Integer value) {
            addCriterion("VISITED_LOG_ID >", value, "VISITED_LOG_ID");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVisitedLogIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("VISITED_LOG_ID >=", value, "VISITED_LOG_ID");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVisitedLogIdLessThan(Integer value) {
            addCriterion("VISITED_LOG_ID <", value, "VISITED_LOG_ID");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVisitedLogIdLessThanOrEqualTo(Integer value) {
            addCriterion("VISITED_LOG_ID <=", value, "VISITED_LOG_ID");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVisitedLogIdLike(Integer value) {
            addCriterion("VISITED_LOG_ID like ", value, "VISITED_LOG_ID", 1);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVisitedLogIdNotLike(Integer value) {
            addCriterion("VISITED_LOG_ID  not like ", value, "VISITED_LOG_ID", 1);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVisitedLogIdLeftLike(Integer value) {
            addCriterion("VISITED_LOG_ID like ", value, "VISITED_LOG_ID", 0);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVisitedLogIdNotLeftLike(Integer value) {
            addCriterion("VISITED_LOG_ID  not like ", value, "VISITED_LOG_ID", 0);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVisitedLogIdRightLike(Integer value) {
            addCriterion("VISITED_LOG_ID like ", value, "VISITED_LOG_ID", 2);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVisitedLogIdNotRightLike(Integer value) {
            addCriterion("VISITED_LOG_ID  not like ", value, "VISITED_LOG_ID", 2);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVisitedLogIdIn(List<Integer> values) {
            addCriterion("VISITED_LOG_ID  in ", values, "VISITED_LOG_ID");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVisitedLogIdNotIn(List<Integer> values) {
            addCriterion("VISITED_LOG_ID not in ", values, "VISITED_LOG_ID");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVisitedLogIdBetween(Integer value1, Integer value2) {
            addCriterion("VISITED_LOG_ID between ", value1, value2, "VISITED_LOG_ID");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVisitedLogIdNotBetween(Integer value1, Integer value2) {
            addCriterion("VISITED_LOG_ID not between ", value1, value2, "VISITED_LOG_ID");
            return (CodeFamilyVistedLogCriteria) this;
        }
        public CodeFamilyVistedLogCriteria andFamilyIdIsNull() {
            addCriterion("FAMILY_ID is null");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andFamilyIdIsNotNull() {
            addCriterion("FAMILY_ID is not null");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andFamilyIdEqualTo(Integer value) {
            addCriterion("FAMILY_ID =", value, "FAMILY_ID");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andFamilyIdNotEqualTo(Integer value) {
            addCriterion("FAMILY_ID <>", value, "FAMILY_ID");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andFamilyIdGreaterThan(Integer value) {
            addCriterion("FAMILY_ID >", value, "FAMILY_ID");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andFamilyIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("FAMILY_ID >=", value, "FAMILY_ID");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andFamilyIdLessThan(Integer value) {
            addCriterion("FAMILY_ID <", value, "FAMILY_ID");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andFamilyIdLessThanOrEqualTo(Integer value) {
            addCriterion("FAMILY_ID <=", value, "FAMILY_ID");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andFamilyIdLike(Integer value) {
            addCriterion("FAMILY_ID like ", value, "FAMILY_ID", 1);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andFamilyIdNotLike(Integer value) {
            addCriterion("FAMILY_ID  not like ", value, "FAMILY_ID", 1);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andFamilyIdLeftLike(Integer value) {
            addCriterion("FAMILY_ID like ", value, "FAMILY_ID", 0);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andFamilyIdNotLeftLike(Integer value) {
            addCriterion("FAMILY_ID  not like ", value, "FAMILY_ID", 0);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andFamilyIdRightLike(Integer value) {
            addCriterion("FAMILY_ID like ", value, "FAMILY_ID", 2);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andFamilyIdNotRightLike(Integer value) {
            addCriterion("FAMILY_ID  not like ", value, "FAMILY_ID", 2);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andFamilyIdIn(List<Integer> values) {
            addCriterion("FAMILY_ID  in ", values, "FAMILY_ID");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andFamilyIdNotIn(List<Integer> values) {
            addCriterion("FAMILY_ID not in ", values, "FAMILY_ID");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andFamilyIdBetween(Integer value1, Integer value2) {
            addCriterion("FAMILY_ID between ", value1, value2, "FAMILY_ID");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andFamilyIdNotBetween(Integer value1, Integer value2) {
            addCriterion("FAMILY_ID not between ", value1, value2, "FAMILY_ID");
            return (CodeFamilyVistedLogCriteria) this;
        }
        public CodeFamilyVistedLogCriteria andVisitedDateIsNull() {
            addCriterion("VISITED_DATE is null");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVisitedDateIsNotNull() {
            addCriterion("VISITED_DATE is not null");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVisitedDateEqualTo(Date value) {
            addCriterion("VISITED_DATE =", value, "VISITED_DATE");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVisitedDateNotEqualTo(Date value) {
            addCriterion("VISITED_DATE <>", value, "VISITED_DATE");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVisitedDateGreaterThan(Date value) {
            addCriterion("VISITED_DATE >", value, "VISITED_DATE");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVisitedDateGreaterThanOrEqualTo(Date value) {
            addCriterion("VISITED_DATE >=", value, "VISITED_DATE");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVisitedDateLessThan(Date value) {
            addCriterion("VISITED_DATE <", value, "VISITED_DATE");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVisitedDateLessThanOrEqualTo(Date value) {
            addCriterion("VISITED_DATE <=", value, "VISITED_DATE");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVisitedDateLike(Date value) {
            addCriterion("VISITED_DATE like ", value, "VISITED_DATE", 1);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVisitedDateNotLike(Date value) {
            addCriterion("VISITED_DATE  not like ", value, "VISITED_DATE", 1);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVisitedDateLeftLike(Date value) {
            addCriterion("VISITED_DATE like ", value, "VISITED_DATE", 0);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVisitedDateNotLeftLike(Date value) {
            addCriterion("VISITED_DATE  not like ", value, "VISITED_DATE", 0);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVisitedDateRightLike(Date value) {
            addCriterion("VISITED_DATE like ", value, "VISITED_DATE", 2);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVisitedDateNotRightLike(Date value) {
            addCriterion("VISITED_DATE  not like ", value, "VISITED_DATE", 2);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVisitedDateIn(List<Date> values) {
            addCriterion("VISITED_DATE  in ", values, "VISITED_DATE");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVisitedDateNotIn(List<Date> values) {
            addCriterion("VISITED_DATE not in ", values, "VISITED_DATE");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVisitedDateBetween(Date value1, Date value2) {
            addCriterion("VISITED_DATE between ", value1, value2, "VISITED_DATE");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andVisitedDateNotBetween(Date value1, Date value2) {
            addCriterion("VISITED_DATE not between ", value1, value2, "VISITED_DATE");
            return (CodeFamilyVistedLogCriteria) this;
        }
        public CodeFamilyVistedLogCriteria andContentIsNull() {
            addCriterion("CONTENT is null");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andContentIsNotNull() {
            addCriterion("CONTENT is not null");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andContentEqualTo(String value) {
            addCriterion("CONTENT =", value, "CONTENT");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andContentNotEqualTo(String value) {
            addCriterion("CONTENT <>", value, "CONTENT");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andContentGreaterThan(String value) {
            addCriterion("CONTENT >", value, "CONTENT");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andContentGreaterThanOrEqualTo(String value) {
            addCriterion("CONTENT >=", value, "CONTENT");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andContentLessThan(String value) {
            addCriterion("CONTENT <", value, "CONTENT");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andContentLessThanOrEqualTo(String value) {
            addCriterion("CONTENT <=", value, "CONTENT");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andContentLike(String value) {
            addCriterion("CONTENT like ", value, "CONTENT", 1);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andContentNotLike(String value) {
            addCriterion("CONTENT  not like ", value, "CONTENT", 1);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andContentLeftLike(String value) {
            addCriterion("CONTENT like ", value, "CONTENT", 0);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andContentNotLeftLike(String value) {
            addCriterion("CONTENT  not like ", value, "CONTENT", 0);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andContentRightLike(String value) {
            addCriterion("CONTENT like ", value, "CONTENT", 2);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andContentNotRightLike(String value) {
            addCriterion("CONTENT  not like ", value, "CONTENT", 2);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andContentIn(List<String> values) {
            addCriterion("CONTENT  in ", values, "CONTENT");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andContentNotIn(List<String> values) {
            addCriterion("CONTENT not in ", values, "CONTENT");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andContentBetween(String value1, String value2) {
            addCriterion("CONTENT between ", value1, value2, "CONTENT");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andContentNotBetween(String value1, String value2) {
            addCriterion("CONTENT not between ", value1, value2, "CONTENT");
            return (CodeFamilyVistedLogCriteria) this;
        }
        public CodeFamilyVistedLogCriteria andPhotoListIsNull() {
            addCriterion("PHOTO_LIST is null");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andPhotoListIsNotNull() {
            addCriterion("PHOTO_LIST is not null");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andPhotoListEqualTo(String value) {
            addCriterion("PHOTO_LIST =", value, "PHOTO_LIST");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andPhotoListNotEqualTo(String value) {
            addCriterion("PHOTO_LIST <>", value, "PHOTO_LIST");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andPhotoListGreaterThan(String value) {
            addCriterion("PHOTO_LIST >", value, "PHOTO_LIST");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andPhotoListGreaterThanOrEqualTo(String value) {
            addCriterion("PHOTO_LIST >=", value, "PHOTO_LIST");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andPhotoListLessThan(String value) {
            addCriterion("PHOTO_LIST <", value, "PHOTO_LIST");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andPhotoListLessThanOrEqualTo(String value) {
            addCriterion("PHOTO_LIST <=", value, "PHOTO_LIST");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andPhotoListLike(String value) {
            addCriterion("PHOTO_LIST like ", value, "PHOTO_LIST", 1);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andPhotoListNotLike(String value) {
            addCriterion("PHOTO_LIST  not like ", value, "PHOTO_LIST", 1);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andPhotoListLeftLike(String value) {
            addCriterion("PHOTO_LIST like ", value, "PHOTO_LIST", 0);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andPhotoListNotLeftLike(String value) {
            addCriterion("PHOTO_LIST  not like ", value, "PHOTO_LIST", 0);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andPhotoListRightLike(String value) {
            addCriterion("PHOTO_LIST like ", value, "PHOTO_LIST", 2);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andPhotoListNotRightLike(String value) {
            addCriterion("PHOTO_LIST  not like ", value, "PHOTO_LIST", 2);
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andPhotoListIn(List<String> values) {
            addCriterion("PHOTO_LIST  in ", values, "PHOTO_LIST");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andPhotoListNotIn(List<String> values) {
            addCriterion("PHOTO_LIST not in ", values, "PHOTO_LIST");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andPhotoListBetween(String value1, String value2) {
            addCriterion("PHOTO_LIST between ", value1, value2, "PHOTO_LIST");
            return (CodeFamilyVistedLogCriteria) this;
        }

        public CodeFamilyVistedLogCriteria andPhotoListNotBetween(String value1, String value2) {
            addCriterion("PHOTO_LIST not between ", value1, value2, "PHOTO_LIST");
            return (CodeFamilyVistedLogCriteria) this;
        }

    }

    public static class CodeFamilyVistedLogCriteria extends GeneratedCriteria {

        protected CodeFamilyVistedLogCriteria() {
            super();
        }
    }

    public static class CodeFamilyVistedLogCriterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected CodeFamilyVistedLogCriterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }
        protected CodeFamilyVistedLogCriterion(String condition, Object value, int likeType) {
            this.condition = condition;
            if (likeType == 0) {
                this.value = "%" + value;
            }
            else if (likeType == 1) {
                this.value = "%" + value + "%";
            }
            else {
                this.value = value + "%";
            }
            this.typeHandler = null;
            this.singleValue = true;

        }

        protected CodeFamilyVistedLogCriterion(String condition, Object value,
                String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            }
            else {
                this.singleValue = true;
            }
        }

        protected CodeFamilyVistedLogCriterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected CodeFamilyVistedLogCriterion(String condition, Object value,
                Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected CodeFamilyVistedLogCriterion(String condition, Object value,
                Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}